<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="{$_C.hy_path}css/amazeui.min.css"/>
		<link rel="stylesheet" type="text/css" href="{$_C.hy_path}css/hy.admin.css"/>
		<link rel="stylesheet" type="text/css" href="{$_C.hy_path}css/timepicki.css"/>
		<style>
			#tooltip{
				position:absolute;
				border:1px solid #ccc;
				background:#333;
				padding:2px;
				display:none;
				color:#fff;
			}
			

		</style>
	</head>
	<body>
		<div class="am-g">
			 {include file='../Common/hy_header.html'}
			 	
      <div class="am-u-md-6 am-cf">
        <div class="am-fl am-cf">
          <div class="am-btn-toolbar am-fl">
            <div class="am-btn-group am-btn-group-xs">

           		 <button data-title="新建奖品" data-id="add_long_prize" data-href="index.php?g=admin&m=long&a=add_prize" class="am-btn am-btn-default am-btn-xs am-text-secondary hy-js-href" ><span class="am-icon-plus"></span> 新增奖品</button>
			</div>

           
          </div>
        </div>
      </div>
	     
	      
	      <div class="am-u-md-3 am-cf">
	       <div class="am-fr">
	          <div class="am-input-group am-input-group-sm">
	            <input value="{$_GET['k']}"  type="text" class="am-form-field hy-js-search" placeholder="奖品名称">
	                <span class="am-input-group-btn">
	                  <button class="am-btn am-btn-default hy-js-searchbtn" type="button">搜索</button>
	                </span>
	          </div>
	        </div>
	      </div>
	      
	    
      	
	  
      <div class="am-g">
      <div class="am-u-sm-12">
        <div class="am-form">
          <table class="am-table am-table-striped am-table-hover hy-table-main">
            <thead>
              <tr>
                 <th class="table-check">奖品名称</th>
               <!--   <th class="table-type">赞助商</th>
				 <th class="table-type">价格</th> -->
				<!--  <th class="table-type">备注</th> -->
				<th class="table-type">卡券类型</th>
				 <th class="table-type">中奖概率</th>
				 <th class="table-type">中奖优先级</th>
				 <th class="table-type" style="width:200px" width="200px">卡券ID</th>
				 <th class="table-type">当前中奖人数</th>
				 <th class="table-type" style="max-width:100px">操作</th>
                
              </tr>
          </thead>
          <tbody>
          {foreach from=$result item=cont}
          	<div id="pri_{$cont.id}">
          	<tr>
          		<td>{$cont.prize_name}</td>
          		<!-- <td>{$cont.support}</td>
	            <td>{$cont.money}</td> -->
	            <!-- <td>{$cont.mark}</td> -->
	            <td>{if $cont.card_type ==0}长隆{else}其他{/if}</td>	
	            <td>{$cont.pby}</td>
				<td>{$cont.pri}</td>
	            <td>{$cont.card_id}</td>
	            <td>{$cont.prizenums}</td>
	            <td>
	                <div class="am-btn-toolbar">
	                  <div class="am-btn-group am-btn-group-xs">
	                    <button data-id="long_prize_{$cont.id}" data-href="index.php?g=admin&m=long&a=update_prize&id={$cont.id}" data-title="修改奖品" class="am-btn am-btn-default am-btn-xs am-text-secondary hy-js-href"><span class="am-icon-pencil-square-o"></span> 编辑</button>
	                    <button data-id="long_show_{$cont.id}" data-href="index.php?g=admin&m=long&a=rule&id={$cont.id}" data-title="奖品详情" class="am-btn am-btn-default am-btn-xs am-text-secondary hy-js-href"><span class="am-icon-pencil-square-o"></span> 详情</button>
	                    <button data-param ="{ url:'index.php?g=admin&m=long&a=del_prize&id={$cont.id}',hide:4}" class="am-btn am-btn-default am-btn-xs am-text-danger hy-js-del"><span class="am-icon-trash-o"></span> 删除</button>
	                  </div>
	                </div>
	            </td>
          	</tr>
          	</div>
          	{/foreach}
          </tbody>
        </table>
          <div class="am-cf">

			  <div class="am-fr">
				{$user_list_page}
			  </div>
			</div>
          <!-- <hr /> -->
      
        </div>
      </div>

    </div>
    </div>
   {include file='../Common/hy_footer.html'}
   <script src="{$_C.hy_path}js/jquery.min.js"></script>
   <script src="{$_C.hy_path}js/timepicki.js"></script>

   <script>
   		
	</script>
</body>
</html>
